﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="MeetingCalendar.aspx.cs" Inherits="ZHDJ.Web.Portal.MeetingLecture.MeetingCalendar" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        .dtr{height:32px;}
        .dtitle{font-weight: bold;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="party-navigation">
        当前位置：<a href="/Default.aspx">首页</a> > <a href="MeetingCalendar.aspx?BranchID=<%=BranchID %>">三会一课</a> 
    </div>
	<div class="bgline"></div>
    <div class="s_content_k s_content_border" style="margin-top:20px;">
        <div>
            <asp:DropDownList runat="server" ID="ddlYear" Width="180px" Style="margin-top: 5px;padding: 5px;" AutoPostBack="true"></asp:DropDownList>
            <asp:DropDownList runat="server" ID="ddlMonth" Width="180px" Style="margin-top: 5px;padding: 5px;" AutoPostBack="true"></asp:DropDownList>
            至
			<asp:DropDownList runat="server" ID="ddlEndMonth" Width="180px" Style="margin-top: 5px;padding: 5px;" AutoPostBack="true"></asp:DropDownList>
            <asp:DropDownList runat="server" ID="ddlType" Width="180px" Style="margin-top: 5px;padding: 5px;" AutoPostBack="true">
                <asp:ListItem Text="全部" Selected="True" Value=""></asp:ListItem>
                <asp:ListItem Text="我的会议" Value="Meeting"></asp:ListItem>
                <asp:ListItem Text="我的党课" Value="Courses"></asp:ListItem>
            </asp:DropDownList>
            <div>
                <div>
                    <%
                        if (string.IsNullOrEmpty(ddlMonth.SelectedValue))
                        {
                            for (int i = 1; i < 13; i++)
                            { %>
                    <table style="margin-top: 20px; width: 100%;">
                        <tr>
                            <td style="font-size: 18px; font-weight: bold; color: #e60000;padding: 0 0 10px 0;" colspan="2">
                                <%=this.ChangeNumber(i.ToString())%>
                            </td>
                        </tr>
                        <%foreach (System.Data.DataRow dr in this.GetMeetingCalendar(i.ToString()).Rows)
                            { %>
                        <tr class="dtr">
                            <td colspan="2">
                                <a style="font-size: 16px; font-weight: bold; " href="CoursesMeetingDetail.aspx?ID=<%=dr["ID"] %>&BranchID=<%=BranchID %>&Category=<%=dr["TableName"] %>" target="_blank"><%=dr["Title"]%></a>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">活动时间：</td>
                            <td style="font-size: 14px;  color: #4C4C4C;">
                                <%=Convert.ToDateTime(dr["BeginTime"]).ToString("yyyy年MM月dd日")%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">类&nbsp;&nbsp;型：</td>
                            <td>
                                <%=dr["ModeName"]%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">地&nbsp;&nbsp;点：</td>
                            <td>
                                <%=dr["Address"]%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">参与人员：</td>
                            <td>
                                <%=this.GetMeetingMember(Convert.ToString(dr["ID"]))%>
                            </td>
                        </tr>
                        <%} %>

                        <tr>
                            <td  colspan="2">&nbsp;
                            </td>
                        </tr>
                    </table>
                    <%}
                        }
                        else if (!string.IsNullOrEmpty(ddlMonth.SelectedValue) && string.IsNullOrEmpty(ddlEndMonth.SelectedValue))
                        {%>

                    <table style="margin-top: 20px; width: 100%;">
                        <tr >
                            <td colspan="2" style="font-size: 18px; font-weight: bold; color: #e60000;padding: 0 0 10px 0;">
                                <%=this.ChangeNumber(ddlMonth.SelectedValue)%>
                            </td>
                        </tr>
                        <%foreach (System.Data.DataRow dr in this.GetMeetingCalendar(ddlMonth.SelectedValue).Rows)
                            { %>
                        <tr class="dtr">
                            <td colspan="2">
                                <a style="font-size: 16px; font-weight: bold; " href="CoursesMeetingDetail.aspx?ID=<%=dr["ID"] %>&BranchID=<%=BranchID %>&Category=<%=dr["TableName"] %>"
                                    target="_blank">
                                    <%=dr["Title"]%></a>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                             <td style="width: 72px;" class="dtitle">活动时间：
                            </td>
                            <td style="font-size: 14px; color: #4C4C4C;">
                                <%=Convert.ToDateTime(dr["BeginTime"]).ToString("yyyy年MM月dd日")%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">类&nbsp;&nbsp;型：
                            </td>
                            <td>
                                <%=dr["ModeName"]%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">地&nbsp;&nbsp;点：
                            </td>
                            <td>
                                <%=dr["Address"]%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">参与人员：
                            </td>
                            <td>
                                <%=this.GetMeetingMember(Convert.ToString(dr["ID"]))%>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td colspan="2">&nbsp;
                            </td>
                        </tr>
                    </table>

                    <%}
                        else if (!string.IsNullOrEmpty(ddlMonth.SelectedValue) && !string.IsNullOrEmpty(ddlEndMonth.SelectedValue))
                        {
                            for (int i = Convert.ToInt32(ddlMonth.SelectedValue); i <= Convert.ToInt32(ddlEndMonth.SelectedValue); i++)
                            { %>
                    <table style="margin-top: 20px; width: 100%;">
                        <tr>
                            <td colspan="2" style="font-size: 18px; font-weight: bold; color: #e60000;padding: 0 0 10px 0;">
                                <%=this.ChangeNumber(i.ToString())%>
                            </td>
                        </tr>
                        <%foreach (System.Data.DataRow dr in this.GetMeetingCalendar(i.ToString()).Rows)
                            { %>
                        <tr class="dtr">
                            <td colspan="2" >
                                <a style="font-size: 16px; font-weight: bold; " href="CoursesMeetingDetail.aspx?ID=<%=dr["ID"] %>&BranchID=<%=BranchID %>&Category=<%=dr["TableName"] %>"
                                    target="_blank">
                                    <%=dr["Title"]%></a>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                             <td style="width: 72px;" class="dtitle">活动时间：
                            </td>
                            <td style="font-size: 14px;  color: #4C4C4C;">
                                <%=Convert.ToDateTime(dr["BeginTime"]).ToString("yyyy年MM月dd日")%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">类&nbsp;&nbsp;型：
                            </td>
                            <td>
                                <%=dr["ModeName"]%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">地&nbsp;&nbsp;点：
                            </td>
                            <td>
                                <%=dr["Address"]%>
                            </td>
                        </tr>
                        <tr class="dtr" style="font-size: 14px; color: #4C4C4C;">
                            <td style="width: 72px;" class="dtitle">参与人员：
                            </td>
                            <td>
                                <%=this.GetMeetingMember(Convert.ToString(dr["ID"]))%>
                            </td>
                        </tr>
                        <%} %>
                        <tr >
                            <td colspan="2">&nbsp;
                            </td>
                        </tr>
                    </table>
                    <%}
                        }%>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
